package com.isoft.c2team3service2.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("user_message")
public class UserMessage {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer senderId;      // 发送者ID
    private Integer receiverId;    // 接收者ID
    private String content;        // 消息内容
    private LocalDateTime createTime;  // 发送时间
    private Integer status;        // 消息状态：0-未读，1-已读，2-已回复
    
}